package grad.nxu.recruitsystem.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @TableName user_role
 */
@TableName(value = "user_role")
@Data
@Accessors(chain = true)
public class UserRole implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户邮箱
     */
    @TableField(value = "user_email")
    private String userEmail;
    /**
     * 角色id
     */
    @TableField(value = "role_id")
    private Integer roleId;
}